package com.zhiche.lisa.bms.dao.model.fee;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 费用类型
 * </p>
 *
 * @author zhangkun
 * @since 2018-09-10
 */
@TableName("lisa_fee_type")
public class FeeType extends Model<FeeType> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 费用名称
     */
	@TableField("type_name")
	private String typeName;
    /**
     * 可否归于应付类
     */
	@TableField("is_payable")
	private Integer isPayable;
    /**
     * 可否归于应收类
     */
	@TableField("is_receivable")
	private Integer isReceivable;
    /**
     * 租户ID
     */
	@TableField("tenant_id")
	private Long tenantId;
	@TableField("gmt_modify")
	private Date gmtModify;
	@TableField("gmt_create")
	private Date gmtCreate;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getTypeName() {
		return typeName;
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}

	public Integer getIsPayable() {
		return isPayable;
	}

	public void setIsPayable(Integer isPayable) {
		this.isPayable = isPayable;
	}

	public Integer getIsReceivable() {
		return isReceivable;
	}

	public void setIsReceivable(Integer isReceivable) {
		this.isReceivable = isReceivable;
	}

	public Long getTenantId() {
		return tenantId;
	}

	public void setTenantId(Long tenantId) {
		this.tenantId = tenantId;
	}

	public Date getGmtModify() {
		return gmtModify;
	}

	public void setGmtModify(Date gmtModify) {
		this.gmtModify = gmtModify;
	}

	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "FeeType{" +
			", id=" + id +
			", typeName=" + typeName +
			", isPayable=" + isPayable +
			", isReceivable=" + isReceivable +
			", tenantId=" + tenantId +
			", gmtModify=" + gmtModify +
			", gmtCreate=" + gmtCreate +
			"}";
	}
}
